package com.liyongjian.apidoc.dal;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.liyongjian.apidoc.domain.Sys;
import com.liyongjian.apidoc.domain.enumm.LiveDieState;


public interface SysRepository extends PagingAndSortingRepository<Sys, Long> {

    Sys findByUserIdAndName(Long userId, String name);

    List<Sys> findByUserIdAndState(Long userId, LiveDieState state);

}
